/**
 * 获得商品相关信息
 * @author jeff liu
 * powered by jeff 2011-06-07
 */

var goods_retrieval = {};

/**
 * 获得商品价格
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsPrice = function (ele) {
    window.__common_prototype(ele, GET_GOODS_PRICE_API);
};

/**
 * 获得商品名称
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsName = function (ele) {
    window.__common_prototype(ele, GET_GOODS_NAME_API);
};

/**
 * 获得商品销售记录
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsSalesLog = function (ele) {
    window.__common_prototype(ele, GET_GOODS_SALE_LOG_API);
};

/**
 * 获得商品默认图片
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsDefaultImg = function (ele) {
    window.__common_prototype(ele, GET_GOODS_DEFAULT_IMG);
};

/**
 * 获得商品剩余总库存
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsStock = function (ele) {
    window.__common_prototype(ele, GET_GOODS_STOCK);
};

/**
 * 获得商品已售出总库存
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsSelledStock = function (ele) {
    window.__common_prototype(ele, GET_GOODS_SELLED_STOCK);
};


/**
 * 获得商品等待付款总库存
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsWaitingPaiedStock = function (ele) {
    window.__common_prototype(ele, GET_GOODS_WAITING_PAID_STOCK);
};

/**
 * 获得商品详细信息
 * @author jeff liu
 * powered by jeff 2011-06-07
 */
goods_retrieval.apiGetGoodsDetail = function (ele) {
    window.__common_prototype(ele, GET_GOODS_DETAIL_API);
};

EMALL.regist("goods_retrieval", goods_retrieval);